<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/templates/init.xhtml">
	<ui:define name="titulo">
    Ao Vivo
	</ui:define>
	<ui:define name="corpo">
		<body>
			<!-- <p:ajaxStatus style="display:block;margin-bottom:2em;height:24px;">

				<p:ajaxStatus default="PF('statusDialog').show()"
					onsuccess="PF('statusDialog').hide()" />

				<p:dialog widgetVar="statusDialog" modal="true" draggable="false"
					closable="false" resizable="false" showHeader="false">
					<h:graphicImage value="/resources/imagens/ajax_loading_bar.gif">
					</h:graphicImage>
				</p:dialog>
			</p:ajaxStatus> -->
			<h:form>
				<div align="center">
					<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
						codebase="http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axvlc.cab"
						width="430" height="300" id="vlc" events="True">
						<!--  <param name="Src"
							value="rtsp://admin:1@rafafp.dyndns-remote.com:554" />
							value="rtmp://a2tecnologia.cloudapp.net:1935/SmartSightLiveCam/CameraA2.stream" />
							value="rtsp://admin:admin@rafafp.dyndns-remote.com:554/stream/channel1" />-->
						<param name="Src" value="#{aovivoController.buscaUrlCam()}" />
						<param name="ShowDisplay" value="True" />
						<param name="AutoLoop" value="False" />
						<param name="AutoPlay" value="True" />
						<object id="vlcEmb" type="application/x-google-vlc-plugin"
							version="VideoLAN.VLCPlugin.2" autoplay="yes" loop="no"
							width="425" height="300"
							target="#{aovivoController.buscaUrlCam()}">
							<!--  target="rtsp://admin:admin@rafafp.dyndns-remote.com:554/stream/channel1">-->

						</object>
					</object>
				</div>
			</h:form>
		</body>
	</ui:define>
</ui:composition>
</html>





